home *** CD-ROM | disk | FTP | other *** search
/ Hot Super Models / Hot Super Models.iso / dos / tif / makefile.486 < prev    next >
Makefile  |  1992-07-16  |  7KB  |  157 lines

  1. # Makefile for Independent JPEG Group's software
  2. # Modified for hiview, M.A. REZAEI. 
  3.  
  4. # This makefile is suitable for DJ GCC on MSDOS machines
  5. # It includes all optimizations I fould useful.
  6. # Thanks to Tom Wright and Ge' Weijers for this file.
  7.  
  8. # Read SETUP instructions before saying "make" !!
  9.  
  10. # The name of your C compiler:
  11. CC= gcc
  12.  
  13. # Debug flags
  14. # DEBUG= -v
  15. DEBUG= 
  16.  
  17. # Memory model
  18. MODEL= m
  19.  
  20. CFLAGS= $(DEBUG) @optimize.lst -m486
  21. # -DHAVE_STDC -DINCLUDES_ARE_ANSI enable ANSI-C features (we DON'T want -A)
  22. # -ms selects small memory model for most efficient code
  23. # -DMSDOS enables DOS-specific code
  24. # -DINCOMPLETE_TYPES_BROKEN suppresses bogus warning about undefined structures
  25. # -w-par suppresses warnings about unused function parameters
  26. # -O2 enables full code optimization (for pre-3.0 Borland C++, use -O -G -Z)
  27.  
  28. # Link-time cc options:
  29. LDFLAGS= 
  30. # memory model option here must match CFLAGS!
  31.  
  32.  
  33. # source files (independently compilable files)
  34. SOURCES= jbsmooth.c jcarith.c jccolor.c jcdeflts.c jcexpand.c jchuff.c \
  35.         jcmain.c jcmaster.c jcmcu.c jcpipe.c jcsample.c jdarith.c jdcolor.c \
  36.         jddeflts.c jdhuff.c jdmain.c jdmaster.c jdmcu.c jdpipe.c jdsample.c \
  37.         jerror.c jquant1.c jquant2.c jfwddct.c jrevdct.c jutils.c jmemmgr.c \
  38.         jrdjfif.c jrdgif.c jrdppm.c jrdrle.c jrdtarga.c jwrjfif.c jwrgif.c \
  39.         jwrppm.c jwrrle.c jwrtarga.c
  40. # virtual source files (not present in distribution file)
  41. VIRTSOURCES= jmemsys.c
  42. # system-dependent implementations of source files
  43. SYSDEPFILES= jmemansi.c jmemname.c jmemnobs.c
  44. # files included by source files
  45. INCLUDES= jinclude.h jconfig.h jpegdata.h jversion.h jmemsys.h egetopt.c
  46. # documentation, test, and support files
  47. DOCS= README SETUP USAGE CHANGELOG cjpeg.1 djpeg.1 architecture codingrules
  48. MAKEFILES= makefile.ansi makefile.unix makefile.manx makefile.sas \
  49.         makefile.mc5 makefile.mc6 makcjpeg.lnk makdjpeg.lnk makefile.bcc \
  50.         makcjpeg.lst makdjpeg.lst makefile.pwc makcjpeg.cf makdjpeg.cf \
  51.         makljpeg.cf makefile.mms makefile.vms makvms.opt
  52. OTHERFILES= ansi2knr.c ckconfig.c example.c
  53. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg
  54. DISTFILES= $(DOCS) $(MAKEFILES) $(SOURCES) $(SYSDEPFILES) $(INCLUDES) \
  55.         $(OTHERFILES) $(TESTFILES)
  56. # objectfiles common to cjpeg and djpeg
  57. COMOBJECTS= jutils.o jerror.o jmemmgr.o jmemsys.o 
  58. # compression objectfiles
  59. CLIBOBJECTS= jcmaster.o jcdeflts.o jcarith.o jccolor.o jcexpand.o \
  60.         jchuff.o jcmcu.o jcpipe.o jcsample.o jfwddct.o \
  61.         jwrjfif.o jrdgif.o jrdppm.o jrdrle.o jrdtarga.o
  62. COBJECTS= jcmain.o $(CLIBOBJECTS) $(COMOBJECTS)
  63. # decompression objectfiles
  64. DLIBOBJECTS= jdmaster.o jddeflts.o jbsmooth.o jdarith.o jdcolor.o \
  65.         jdhuff.o jdmcu.o jdpipe.o jdsample.o jquant1.o \
  66.         jquant2.o jrevdct.o jrdjfif.o jwrgif.o jwrppm.o \
  67.         jwrrle.o jwrtarga.o
  68. DOBJECTS= jdmain.o $(DLIBOBJECTS) $(COMOBJECTS)
  69. # viewer object files
  70. VOBJECTS= range.o mypow.o fnsplit.o dither.o hicolor.o jrdgif.o jrdtarga.o viewer.o $(DLIBOBJECTS) $(COMOBJECTS)
  71. # These objectfiles are included in libjpeg.lib
  72. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  73.  
  74.  
  75. all: hiview.out
  76.  
  77. cjpeg.exe: $(COBJECTS)
  78.         $(CC) $(LDFLAGS) -ecjpeg.exe @makcjpeg.lst
  79.  
  80. djpeg.out: $(DOBJECTS)
  81.         $(CC) $(LDFLAGS) $(CFLAGS) @makdjpeg.lst -o djpeg.out 
  82.  
  83. hiview.out: $(VOBJECTS) viewer.o
  84.         $(CC) $(LDFLAGS) $(CFLAGS) -o hiview.out @mkhiview.lst -lpc -lm -lgrx
  85.  
  86. jview.out: $(VOBJECTS) jview.o
  87.         $(CC) $(LDFLAGS)  -o jview.out @mkjview.lst -lpc -lm -lgr
  88.  
  89. .c.o:
  90.         $(CC) $(CFLAGS) -I/lang/djgcc/contrib/libgrx/include -c $<
  91.  
  92. clean:
  93.         del *.o
  94.         del cjpeg.exe
  95.         del djpeg.exe
  96.         del testout.*
  97.  
  98. zip:
  99.         pkzip hiview.zip @zip.lst
  100.  
  101. test:
  102.         del testout.*
  103.         djpeg testorig.jpg testout.ppm
  104.         djpeg -G testorig.jpg testout.gif
  105.         cjpeg testimg.ppm testout.jpg
  106.         fc testimg.ppm testout.ppm
  107.         fc testimg.gif testout.gif
  108.         fc testimg.jpg testout.jpg
  109.  
  110. range.o: range.c
  111. mypow.o: mypow.c mypow.h
  112. fnsplit.o: fnsplit.c
  113. dither.o: dither.c dither.h hicolor.h
  114. hicolor.o : hicolor.c hicolor.h jinclude.h
  115. jbsmooth.o : jbsmooth.c jinclude.h jconfig.h jpegdata.h
  116. jcarith.o : jcarith.c jinclude.h jconfig.h jpegdata.h
  117. jccolor.o : jccolor.c jinclude.h jconfig.h jpegdata.h
  118. jcdeflts.o : jcdeflts.c jinclude.h jconfig.h jpegdata.h
  119. jcexpand.o : jcexpand.c jinclude.h jconfig.h jpegdata.h
  120. jchuff.o : jchuff.c jinclude.h jconfig.h jpegdata.h
  121. jcmain.o : jcmain.c jinclude.h jconfig.h jpegdata.h jversion.h egetopt.c
  122. jcmaster.o : jcmaster.c jinclude.h jconfig.h jpegdata.h
  123. jcmcu.o : jcmcu.c jinclude.h jconfig.h jpegdata.h
  124. jcpipe.o : jcpipe.c jinclude.h jconfig.h jpegdata.h
  125. jcsample.o : jcsample.c jinclude.h jconfig.h jpegdata.h
  126. jdarith.o : jdarith.c jinclude.h jconfig.h jpegdata.h
  127. jdcolor.o : jdcolor.c jinclude.h jconfig.h jpegdata.h
  128. jddeflts.o : jddeflts.c jinclude.h jconfig.h jpegdata.h
  129. jdhuff.o : jdhuff.c jinclude.h jconfig.h jpegdata.h
  130. jdmain.o : jdmain.c jinclude.h jconfig.h jpegdata.h jversion.h egetopt.c
  131. jdmaster.o : jdmaster.c jinclude.h jconfig.h jpegdata.h
  132. jdmcu.o : jdmcu.c jinclude.h jconfig.h jpegdata.h
  133. jdpipe.o : jdpipe.c jinclude.h jconfig.h jpegdata.h
  134. jdsample.o : jdsample.c jinclude.h jconfig.h jpegdata.h
  135. jerror.o : jerror.c jinclude.h jconfig.h jpegdata.h
  136. jquant1.o : jquant1.c jinclude.h jconfig.h jpegdata.h
  137. jquant2.o : jquant2.c jinclude.h jconfig.h jpegdata.h
  138. jfwddct.o : jfwddct.c jinclude.h jconfig.h jpegdata.h
  139. jrevdct.o : jrevdct.c jinclude.h jconfig.h jpegdata.h
  140. jutils.o : jutils.c jinclude.h jconfig.h jpegdata.h
  141. jmemmgr.o : jmemmgr.c jinclude.h jconfig.h jpegdata.h jmemsys.h
  142. jrdjfif.o : jrdjfif.c jinclude.h jconfig.h jpegdata.h
  143. jrdgif.o : jrdgif.c jinclude.h jconfig.h jpegdata.h
  144. jrdppm.o : jrdppm.c jinclude.h jconfig.h jpegdata.h
  145. jrdrle.o : jrdrle.c jinclude.h jconfig.h jpegdata.h
  146. jrdtarga.o : jrdtarga.c jinclude.h jconfig.h jpegdata.h
  147. jwrjfif.o : jwrjfif.c jinclude.h jconfig.h jpegdata.h
  148. jwrgif.o : jwrgif.c jinclude.h jconfig.h jpegdata.h
  149. jwrppm.o : jwrppm.c jinclude.h jconfig.h jpegdata.h
  150. jwrrle.o : jwrrle.c jinclude.h jconfig.h jpegdata.h
  151. jwrtarga.o : jwrtarga.c jinclude.h jconfig.h jpegdata.h
  152. jmemsys.o : jmemsys.c jinclude.h jconfig.h jpegdata.h jmemsys.h
  153. viewer.o : viewer.c hicolor.h jinclude.h jmemsys.h viewer.h dither.h mypow.h
  154. jview.o: viewer.c hicolor.h jinclude.h jmemsys.h viewer.h dither.h mypow.h
  155.    $(CC) $(CFLAGS) -I/lang/djgcc/contrib/libgrx/include -c -o jview.o -DOLD_DRIVERS viewer.c
  156.  
  157.